---
import { Code } from '@astrojs/starlight/components';

const code = `
MyBloc() {
    on<MyEvent>((event, emit) {
        emit(StateA('hi'));
        emit(StateA('hi'));
    });
}
`;
---

<Code code={code} lang="dart" title="my_bloc.dart" />
